﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Vending_machine_system.VendingMachineClass
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    public class UserInfoClass
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long UserId { get; set; }
        //用户姓名
        public string? UserName { get; set; }
        //用户性别
        public bool Usersex { get; set; }
        //用户账号
        public string? Useraccount { get; set; }
        //用户密码
        public string? UserPassword { get; set; }
        //用户手机号
        public long Userphone { get; set; }
        //所属职责
        public long UserdutiesId { get; set; }
        //用户爱好
        public string? Userhobby { get; set; }
        //用户状态
        public bool? IsDeleted { get; set; } = true;
        //注册时间
        public DateTime Createtime { get; set; } = DateTime.Now;
    }
}
